StackEx

Ecng.Collections

Extends the Stack class to explicitly implement the ICollection interface.

继承自: Stack<T>

实现: ICollection<T>, IEnumerable<T>, IEnumerable

属性

System#Collections#Generic#ICollection{T}#IsReadOnly

Gets a value indicating whether the stack is read-only.

方法

System#Collections#Generic#ICollection{T}#Add(T)

Adds an item to the top of the stack.

item
The item to add.
System#Collections#Generic#ICollection{T}#Remove(T)

Attempts to remove a specific item from the stack. This operation is not supported.

item
The item to remove.

返回值: Always throws NotSupportedException.